package com.cockybook.poemspider.dao;

import com.cockybook.poemspider.beans.Poet;
import com.cockybook.poemspider.beans.URLBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;


public interface PoetsRepository extends JpaRepository<Poet,Integer> {

    @Query("from Poet u where u.name=:name")
    Poet findUser(@Param("name") int name);



}
